<?php
unset($params);
$params['sid'] = $sid;
$params['action'] = "editStoreName";
$params['from_page'] = "home";
$editStoreNameUrl = "$baseURL/?".encode_params($params);
unset($params);
$params['sid'] = $sid;
$params['action'] = "manageDomains";
$params['start_ajax'][0] = "LoadPage('managednsDomains');";
#$params['action'] = "add_domain";
$params['from_page'] = "home";
$manageDomainsUrl = "$baseURL/?".encode_params($params);
unset($params);
$params['sid'] = $sid;
$params['action'] = "changeDetails";
$params['from_page'] = "home";
$changeDetailsUrl = "$baseURL/?".encode_params($params);
unset($params);
$params['sid'] = $sid;
$params['action'] = "editW9Form";
$params['from_page'] = "home";
$changeW9Url = "$baseURL/?".encode_params($params);
unset($params);
$params['sid'] = $sid;
$params['action'] = "editPlans";
$params['from_page'] = "home";
$editPricesUrl = "$baseURL/?".encode_params($params);
unset($params);
$params['sid'] = $sid;
$params['action'] = 'walletAccountRefill';
$params['from_page'] = "home";
$walletRefillUrl = "$baseURL/?".encode_params($params);
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
    <div id='invisible_div' style="display:none;">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0" class="newsbox">

    		<tr>
            <td style="padding: 1px;"><div style=" background:#D1FBD3; padding:3px; height:16px;">
			<strong>Finished Steps:</strong></div></td>
          	 </tr>
		 <tr>
            <td style="padding:5px;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				   <?php
				   if ($res_a['store_name'] == 't') {
				   ?>
				  <tr>
					<td width="18"><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<strong style="color:#006600"><?=translate('check_store');?></strong></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['own_domain'] == 't') {
				  ?>
				  <tr>
					<td><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<strong style="color:#006600"><?=translate('use_own_domain');?></strong></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['dns_cluster'] == 't') {
				  ?>
				  <tr>
					<td><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<strong style="color:#006600">Register your own private DNS &amp; e-mail clusters</strong></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['own_prices'] == 't') {
				  ?>
				  <tr>
					<td><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<strong style="color:#006600"><?=translate('set_own_prices');?></strong></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['account'] == 't') {
				  ?>
				  <tr>
					<td><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<strong style="color:#006600"><?=translate('verify_account');?></strong></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['w9_form'] == 't' && $country == 'US') {
				  ?>
				  <tr>
					<td><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<strong style="color:#006600">Submit your W-9 form</strong></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				</table>
			</td>
           </tr>
           </table>
    	</div>
    	<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="newsbox">
          <tr>
            <td style="padding: 1px;"><div style=" background:#FFEAD6; padding:3px; height:27px;">
			 <?=translate('not_finished_steps');?></div></td>
          </tr>
          <tr>
            <td style="padding:5px;">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
				   <?php
				   if ($res_a['store_name'] == 'f') {
				   ?>
				  <tr>
					<td width="18"><img src="images/ico_puzzle_step_blue.gif" width="13" height="14"></td>
					<td><a href="<?=$editStoreNameUrl;?>"><strong><?=translate('check_store');?></strong></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['own_domain'] == 'f') {
				  ?>
				  <tr>
					<td><img src="images/ico_puzzle_step_blue.gif" width="13" height="14"></td>
					<td><a href="<?=$manageDomainsUrl;?>"><strong><?=translate('use_own_domain');?></strong></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['dns_cluster'] == 'f') {
				  ?>
				  <tr>
					<td><img src="images/ico_puzzle_step_blue.gif" width="13" height="14"></td>
					<td><a href="<?=$manageDomainsUrl;?>"><strong>Register your own private DNS &amp; e-mail clusters</strong></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['own_prices'] == 'f') {
				  ?>
				  <tr>
					<td><img src="images/ico_puzzle_step_blue.gif" width="13" height="14"></td>
					<td><a href="<?=$editPricesUrl;?>"><strong><?=translate('set_own_prices');?></strong></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['account'] == 'f') {
				  ?>
				  <tr>
					<td><img src="images/ico_puzzle_step_blue.gif" width="13" height="14"></td>
					<td><a href="<?=$changeDetailsUrl;?>"><strong><?=translate('verify_account');?></strong></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($res_a['w9_form'] == 'f' && $country == 'US') {
				  ?>
				  <tr>
					<td><img src="images/ico_puzzle_step_blue.gif" width="13" height="14"></td>
					<td><a href="<?=$changeW9Url;?>"><strong>Submit your W-9 form</strong></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				  <?php
				  if ($count_set > 0) {
				  ?>
				  <tr>
					<td colspan="3">&nbsp;</td>
				  </tr>
				  <tr>
					<td colspan="3"><div style="height:1px; background:url(images/dots_grey_line_01.gif); background-repeat:repeat-x;"></div><br></td>
				  </tr>
				  <tr>
					<td><img src="images/ico_finished_step_small.gif" width="14" height="14"></td>
					<td>&nbsp;<a href="#" onClick="document.getElementById('invisible_div').style.display='block';"><?=translate('finished_steps',array('count' => "$count_set"));?></a></td>
					<td align="right">&nbsp;</td>
				  </tr>
				  <? } ?>
				</table>
			</td>
          </tr>
        </table></td>
    <td width="16">&nbsp;</td>
    <td width="139" valign="top"><a href="<?=$walletRefillUrl;?>"><img src="images/ad_box_refill_your_wallet.gif" alt="Refill your wallet and get up to 20% discount" width="139" height="155" border="0"></a></td>
  </tr>
</table>